
class UpgradeBtn extends egret.DisplayObjectContainer {
    private _bgSkin: egret.Bitmap;
    private _text: egret.TextField;
	
    private _title: string;
	
    constructor(title: string = "") {
        super();
        this._title = title;

        this._bgSkin = new egret.Bitmap();
        var texture: egret.Texture = RES.getRes("continueBtn");
        this._bgSkin.texture = texture;
        this.addChild(this._bgSkin);

        this._text = new egret.TextField();
        this._text.text = this._title;
        this.addChild(this._text);
    }

    public get text(): string {
        return this._title;
    }
    public set text(value: string) {
        this._title = value;
        this._text.text = this._title;
    }

    public dispose(): void {

    }
}